package symbolTable;

import typeCheck.Type;

public class Symbol {
    public String name;
    public Type type;
    public Scope scope;
    public Symbol(String name) {
        this.name = name;
    }
    public Symbol(String name, Type type) {
        this.name = name;
        this.type = type;
    }
    public String getName() {
        return this.name;
    }

    @Override
    public String toString() {
        return "Symbol{" +
                "name='" + name + '\'' +
                ", type=" + type +
                ", scope=" + scope +
                '}';
    }
}
